import '@/assets/main.scss'
import 'element-plus/theme-chalk/dark/css-vars.css'
import 'element-plus/dist/index.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import App from './App.vue'
import router from './router'
import echarts from '@/utils/echarts'

const app = createApp(App)
app.config.globalProperties.$echarts = echarts

app.use(createPinia().use(persist))
app.use(ElementPlus, {
  locale: zhCn
})
app.use(router)

app.mount('#app')
